'use strict';
/**
 * @params {}
 * @bussiness {作者}
 * @author JC
 * @date 2022-08-16
 * **/
const Controller = require('egg').Controller;
class Author extends Controller {
    async author(){
        const {ctx} = this;
        const params = ctx.request.body
        let result = await ctx.service.author.author(params);
        ctx.body = {
            msg:200,
            data:result,
            code:2002
        }
    }
}

module.exports = Author;
